/*
 * GameThread.h
 *
 *  Created on: Nov 5, 2012
 *      Author: lucas
 */

#ifndef GAMETHREAD_H_
#define GAMETHREAD_H_
#include "../common/Thread.h"
#include <string>

class Game;
class Client;
class GameThread : public Thread {
private:
	unsigned int connectedClients;
	unsigned int neededClients;
	Game& game;

public:
	GameThread(Game& g);
	virtual ~GameThread();
	void ejecutar();
	void addClient(Client& c);
	void removeClient(Client& c);
	void broadcast(std::string msg);

};

#endif /* GAMETHREAD_H_ */
